import {useEffect, useState} from "react";

function useMount(fn) {
 useEffect(() => {
   fn()
 }, [])
}

export default useMount
